<nz-breadcrumb>
    <nz-breadcrumb-item>
        <a (click)="goback()">返回</a>
    </nz-breadcrumb-item>
    <nz-breadcrumb-item>{{actionName}}菜单</nz-breadcrumb-item>
</nz-breadcrumb>

<form style="margin: 10px 0 0 0;" nz-form [formGroup]="form1" (ngSubmit)="submitForm()">
    <nz-form-item>
        <nz-form-label nzRequired [nzSpan]="3" nzFor="parent_id">上级菜单</nz-form-label>
        <nz-form-control nzErrorTip="请选择上级菜单">
            <nz-tree-select nzPlaceHolder="请选择上级菜单" formControlName="parent_id" id="parent_id" [nzNodes]="parentNodes"
                nzShowSearch>
            </nz-tree-select>
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label [nzSpan]="3" nzRequired nzFor="menu_name">菜单名称</nz-form-label>
        <nz-form-control nzErrorTip="必填项且长度至少为4">
            <input nz-input formControlName="menu_name" id="menu_name" placeholder="请填写菜单名称" />
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label [nzSpan]="3" nzFor="menu_path">菜单链接</nz-form-label>
        <nz-form-control nzErrorTip="必填项且长度至少为4">
            <input nz-input formControlName="menu_path" id="menu_path" placeholder="请填写菜单链接" />
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label [nzSpan]="3" nzFor="menu_icon">图标名字</nz-form-label>
        <nz-form-control>
            <input nz-input formControlName="menu_icon" id="menu_icon" placeholder="图标名字" />
        </nz-form-control>
    </nz-form-item>
    <nz-form-item>
        <nz-form-label [nzSpan]="3" nzRequired nzFor="order_num">排序序号</nz-form-label>
        <nz-form-control nzErrorTip="必填项">
            <input nz-input formControlName="order_num" id="order_num" placeholder="排序序号" />
        </nz-form-control>
    </nz-form-item>


    <nz-form-item nz-row>
        <nz-form-control [nzSpan]="24" class="buttons">
            <button nz-button nzType="primary">提交</button>
        </nz-form-control>
    </nz-form-item>
</form>